package com.yunhe.inspect.repository;
import com.yunhe.inspect.domain.DataInspectPlanItem;
import com.yunhe.inspect.model.InspectPlanItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * @description 巡检计划项目关联表
 * @author misty
 * @date 2021-11-09
 */
@Repository
public interface DataInspectPlanItemRepository {

    /**
     * 新增
     * @author misty
     * @date 2021/11/09
     **/
    int createDataInspectPlanItem(DataInspectPlanItem dataInspectPlanItem);

    /**
     * 新增
     * @author misty
     * @date 2021/11/09
     **/
    int createDataInspectPlanItemSelective(DataInspectPlanItem dataInspectPlanItem);

    /**
     * 刪除
     * @author misty
     * @date 2021/11/09
     **/
    int deleteDataInspectPlanItemByPrimaryKey(@Param("id") int id);

    /**
     * 更新
     * @author misty
     * @date 2021/11/09
     **/
    int updateDataInspectPlanItemByPrimaryKey(DataInspectPlanItem dataInspectPlanItem);

    /**
     * 更新
     * @author misty
     * @date 2021/11/09
     **/
    int updateDataInspectPlanItemByPrimaryKeySelective(DataInspectPlanItem dataInspectPlanItem);

    /**
     * 根据主键查询
     * @author misty
     * @date 2021/11/09
     **/
    DataInspectPlanItem searchDataInspectPlanItemByPrimaryKey(@Param("id") int id);


    void deleteDataInspectPlanItemByInspectPlanId(@Param("inspectPlanId") Integer inspectPlanId);

    List<InspectPlanItem> searchDataInspectPlanItemByInspectPlanId(@Param("inspectPlanId") Integer inspectPlanId);
}